import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/page/HelloWorld'
import businessSituation from '@/page/sale/businessSituation'
import soldNote from '@/page/sale/soldNote'
import diurnalRecord from '@/page/sale/diurnalRecord'
import trendAnalysis from '@/page/sale/trendAnalysis'
import occupationRatioStatistics from '@/page/sale/occupationRatioStatistics'
import commoditySalesStatistics from '@/page/sale/commoditySalesStatistics'
import discountStatistics from '@/page/sale/discountStatistics'
// 销售
import goodsInfo from '@/page/goods/goodsInfo'
import categoryIndex from '@/page/goods/categoryIndex'
import tasteManagement from '@/page/goods/tasteManagement'
import packageInformation from '@/page/goods/packageInformation'
import batchOperation from '@/page/goods/batchOperation'
// 商品
import stockQuery from '@/page/stock/stockQuery'
import inventoryWarning from '@/page/stock/inventoryWarning'
import ChangesDetail from '@/page/stock/ChangesDetail'
import inventoryHistory from '@/page/stock/inventoryHistory'
import goodsReportedLoss from '@/page/stock/goodsReportedLoss'
// 库存
import memberInfo from '@/page/member/memberInfo'
import memberGrade from '@/page/member/memberGrade'
import memberSystem from '@/page/member/memberSystem'
import timeManagement from '@/page/member/timeManagement'
import giftCardManagement from '@/page/member/giftCardManagement'
import memberShipReport from '@/page/member/memberShipReport'
import memberAnalysis from '@/page/member/memberAnalysis'
import smsRecord from '@/page/member/smsRecord'
import memberHistory from '@/page/member/memberHistory'
// 会员
import topUpGifts from '@/page/marketing/topUpGifts'
import salesPromotion from '@/page/marketing/salesPromotion'
import coupon from '@/page/marketing/coupon'
import precisionMarketing from '@/page/marketing/precisionMarketing'
import selfHelpRecommended from '@/page/marketing/selfHelpRecommended'
import autoNotification from '@/page/marketing/autoNotification'
import prepaidCard from '@/page/marketing/prepaidCard'
// 营销
import cashierInformation from '@/page/staff/cashierInformation'
import cashierPerformance from '@/page/staff/cashierPerformance'
import purchasingInfo from '@/page/staff/purchasingInfo'
import purchasingPerformance from '@/page/staff/purchasingPerformance'
import opensDetail from '@/page/staff/opensDetail'
import writeDownsManagement from '@/page/staff/writeDownsManagement'
// 员工
import supplier from '@/page/traffic/supplier'
import storesOrder from '@/page/traffic/storesOrder'
import trafficManagement from '@/page/traffic/trafficManagement'
import detailEnquiry from '@/page/traffic/detailEnquiry'
import supplierSettlement from '@/page/traffic/supplierSettlement'
import importPriceAnalysis from '@/page/traffic/importPriceAnalysis'
import shopAccounts from '@/page/traffic/shopAccounts'
// 货流
import weStoreSet from '@/page/weStore/weStoreSet'
import goodsManagement from '@/page/weStore/goodsManagement'
import classifiedImplicit from '@/page/weStore/classifiedImplicit'
import warmReminding from '@/page/weStore/warmReminding'
import weStoreOrder from '@/page/weStore/weStoreOrder'
// 微店
import roomTableData from '@/page/setting/roomTableData'
import userManagement from '@/page/setting/userManagement'
import systemSet from '@/page/setting/systemSet'
import payment from '@/page/setting/payment'
import storeNotifications from '@/page/setting/storeNotifications'
import subScreenAdvertising from '@/page/setting/subScreenAdvertising'
import operationLog from '@/page/setting/operationLog'
import message from '@/page/setting/message'
// 设置
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/sale/businessSituation',
      name: 'businessSituation',
      component: businessSituation
      // 营业概况
    },
    {
      path: '/',
      name: 'businessSituation',
      component: businessSituation
      // 营业概况      
    },
    {
      path: '/sale/soldNote',
      name: 'soldNote',
      component: soldNote
      // 销售单据      
    },
    {
      path: '/sale/diurnalRecord',
      name: 'diurnalRecord',
      component: diurnalRecord
    },
    // 日结
    {
      path: '/sale/trendAnalysis',
      name: 'trendAnalysis',
      component: trendAnalysis
    },
    // 趋势分析
    {
      path: '/sale/occupationRatioStatistics',
      name: 'occupationRatioStatistics',
      component: occupationRatioStatistics
    },
    // 占比统计
    {
      path: '/sale/commoditySalesStatistics',
      name: 'commoditySalesStatistics',
      component: commoditySalesStatistics
    },
    // 商品销售统计
    {
      path: '/sale/discountStatistics',
      name: 'discountStatistics',
      component: discountStatistics
    },
    // 折扣统计 
    // ---------------------------------------------销售-------------------------------------------------------
    {
      path: '/goods/goodsInfo',
      name: 'goodsInfo',
      component: goodsInfo
    },
    // 商品资料
    {
      path: '/goods/categoryIndex',
      name: 'categoryIndex',
      component: categoryIndex
    },
    // 商品分类排序
    {
      path: '/goods/tasteManagement',
      name: 'tasteManagement',
      component: tasteManagement
    },
    // 味道管理
    {
      path: '/goods/packageInformation',
      name: 'packageInformation',
      component: packageInformation
    },
    // 套餐资料
    {
      path: '/goods/batchOperation',
      name: 'batchOperation',
      component: batchOperation
    },
    // 批量设置
    // ---------------------------------------------商品-------------------------------------------------------
    {
      path: '/stock/stockQuery',
      name: 'stockQuery',
      component: stockQuery
    },
    // 库存查询
    {
      path: '/stock/inventoryWarning',
      name: 'inventoryWarning',
      component: inventoryWarning
    },
    // 库存预警
    {
      path: '/stock/ChangesDetail',
      name: 'ChangesDetail',
      component: ChangesDetail
    },
    // 变动明细
    {
      path: '/stock/inventoryHistory',
      name: 'inventoryHistory',
      component: inventoryHistory
    },
    // 盘点历史
    {
      path: '/stock/goodsReportedLoss',
      name: 'goodsReportedLoss',
      component: goodsReportedLoss
    },
    // 商品报损
    // ---------------------------------------------库存-------------------------------------------------------
    {
      path: '/member/memberInfo',
      name: 'memberInfo',
      component: memberInfo
    },
    // 会员资料
    {
      path: '/member/memberGrade',
      name: 'memberGrade',
      component: memberGrade
    },
    // 会员等级
    {
      path: '/member/memberSystem',
      name: 'memberSystem',
      component: memberSystem
    },
    // 会员制度
    {
      path: '/member/timeManagement',
      name: 'timeManagement',
      component: timeManagement
    },
    // 次卡管理
    {
      path: '/member/giftCardManagement',
      name: 'giftCardManagement',
      component: giftCardManagement
    },
    // 购物卡管理
    {
      path: '/member/memberShipReport',
      name: 'memberShipReport',
      component: memberShipReport
    },
    // 会员卡报表
    {
      path: '/member/memberAnalysis',
      name: 'memberAnalysis',
      component: memberAnalysis
    },
    // 会员分析
    {
      path: '/member/smsRecord',
      name: 'smsRecord',
      component: smsRecord
    },
    // 短信发送记录
    {
      path: '/member/memberHistory',
      name: 'memberHistory',
      component: memberHistory
    },
    // 会员历史
    // ---------------------------------------------会员-------------------------------------------------------
    {
      path: '/marketing/topUpGifts',
      name: 'topUpGifts',
      component: topUpGifts
    },
    // 充值赠送
    {
      path: '/marketing/salesPromotion',
      name: 'salesPromotion',
      component: salesPromotion
    },
    // 促销活动
    {
      path: '/marketing/coupon',
      name: 'coupon',
      component: coupon
    },
    // 优惠卷
    {
      path: '/marketing/precisionMarketing',
      name: 'precisionMarketing',
      component: precisionMarketing
    },
    // 精准营销
    {
      path: '/marketing/selfHelpRecommended',
      name: 'selfHelpRecommended',
      component: selfHelpRecommended
    },
    // 自助推荐
    {
      path: '/marketing/autoNotification',
      name: 'autoNotification',
      component: autoNotification
    },
    // 自动通知
    {
      path: '/marketing/prepaidCard',
      name: 'prepaidCard',
      component: prepaidCard
    },
    // 预付卡
    // ---------------------------------------------营销-------------------------------------------------------
    {
      path: '/staff/cashierInformation',
      name: 'cashierInformation',
      component: cashierInformation
    },
    // 收银员资料
    {
      path: '/staff/cashierPerformance',
      name: 'cashierPerformance',
      component: cashierPerformance
    },
    // 收银员业绩
    {
      path: '/staff/purchasingInfo',
      name: 'purchasingInfo',
      component: purchasingInfo
    },
    // 导购员资料
    {
      path: '/staff/purchasingPerformance',
      name: 'purchasingPerformance',
      component: purchasingPerformance
    },
    // 导购员绩效
    {
      path: '/staff/opensDetail',
      name: 'opensDetail',
      component: opensDetail
    },
    // 导购明细
    {
      path: '/staff/writeDownsManagement',
      name: 'writeDownsManagement',
      component: writeDownsManagement
    },
    // 冲减管理
    // ---------------------------------------------员工-------------------------------------------------------
    {
      path: '/traffic/supplier',
      name: 'supplier',
      component: supplier
    },
    // 供货商
    {
      path: '/traffic/storesOrder',
      name: 'storesOrder',
      component: storesOrder
    },
    // 门店订单
    {
      path: '/traffic/trafficManagement',
      name: 'trafficManagement',
      component: trafficManagement
    },
    // 货流管理
    {
      path: '/traffic/detailEnquiry',
      name: 'detailEnquiry',
      component: detailEnquiry
    },
    // 明细查询
    {
      path: '/traffic/supplierSettlement',
      name: 'supplierSettlement',
      component: supplierSettlement
    },
    // 供货商结算
    {
      path: '/traffic/importPriceAnalysis',
      name: 'importPriceAnalysis',
      component: importPriceAnalysis
    },
    // 进货价分析
    {
      path: '/traffic/shopAccounts',
      name: 'shopAccounts',
      component: shopAccounts
    },
    // 门店对账
    // ---------------------------------------------货流-------------------------------------------------------
    {
      path: '/weStore/weStoreSet',
      name: 'weStoreSet',
      component: weStoreSet
    },
    // 微店设置
    {
      path: '/weStore/goodsManagement',
      name: 'goodsManagement',
      component: goodsManagement
    },
    // 商品管理
    {
      path: '/weStore/classifiedImplicit',
      name: 'classifiedImplicit',
      component: classifiedImplicit
    },
    // 分类显隐
    {
      path: '/weStore/warmReminding',
      name: 'warmReminding',
      component: warmReminding
    },
    // 温馨提醒
    {
      path: '/weStore/weStoreOrder',
      name: 'weStoreOrder',
      component: weStoreOrder
    },
    // 微店订单
    // ---------------------------------------------微店-------------------------------------------------------
    {
      path: '/setting/roomTableData',
      name: 'roomTableData',
      component: roomTableData
    },
    // 桌台设置
    {
      path: '/setting/userManagement',
      name: 'userManagement',
      component: userManagement
    },
    // 用户管理
    {
      path: '/setting/systemSet',
      name: 'systemSet',
      component: systemSet
    },
    // 系统设置
    {
      path: '/setting/payment',
      name: 'payment',
      component: payment
    },
    // 支付方式
    {
      path: '/setting/storeNotifications',
      name: 'storeNotifications',
      component: storeNotifications
    },
    // 门店通知
    {
      path: '/setting/subScreenAdvertising',
      name: 'subScreenAdvertising',
      component: subScreenAdvertising
    },
    // 副屏广告
    {
      path: '/setting/operationLog',
      name: 'operationLog',
      component: operationLog
    },
    // 操作日志
    {
      path: '/setting/message',
      name: 'message',
      component: message
    },
    // 消息通知
    // ---------------------------------------------设置-------------------------------------------------------
  ]
})